// 登录相关接口
import axios from '@/api/request/request'

// 分页获取展馆
const getExhibitionHallPage = (option: any) => {
  return axios.post('/news/exhibitionHall/getExhibitionHallPage', {
    ...option
  })
}

// 添加展馆
const addExhibitionHall = (option: any) => {
  return axios.post('/news/exhibitionHall/addExhibitionHall', {
    ...option
  })
}

// 更新展馆
const updateExhibitionHall = (option: any) => {
  return axios.post('/news/exhibitionHall/updateExhibitionHall', {
    ...option
  })
}

// 删除展馆
const deleteExhibitionHall = (option: any) => {
  return axios.post('/news/exhibitionHall/deleteExhibitionHall', {
    ...option
  })
}

// 根据ID查询展馆详细信息
const getExhibitionHall = (option: any) => {
  return axios.post('/news/exhibitionHall/getExhibitionHall', {
    ...option
  })
}

// 启动展馆状态
const changeExhibitionHall = (option: any) => {
  return axios.post('/news/exhibitionHall/changeExhibitionHall', {
    ...option
  })
}

export { getExhibitionHallPage, addExhibitionHall, updateExhibitionHall, deleteExhibitionHall, getExhibitionHall, changeExhibitionHall }
